import request from "@/netword/request";


const fun = {};

fun.saveMessage = async (message) => {
    const res = await request({
        url: "/web/api/message/saveMessage",
        method: "post",
        params: {
            messageContent:message.messageContent,
            userName:message.userName,
            userPhone:message.userPhone,
            userEmail:message.userEmail
        }
    })
    return res.data;
}


//查询公司信息
fun.getOffice = async (id) => {
    const res = await request({
        url: "/web/api/topBar/officeDetail",
        method: "post",
        params: {
            id: id
        }
    })
    return res.data
}




export default fun;











